package com.wsjc.app.timer.run;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.wsjc.app.timer.utils.SpringContextUtil;


public class TimerRun {
	
	private static Logger logger = LoggerFactory.getLogger(TimerRun.class);
	
	public static void main(String[] args) {
		
		try {
			// 加载Spring配置文件
			ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
					new String[] { "spring/spring-context.xml" });
			// 初始化SpringContextUtil
			final SpringContextUtil ctxUtil = new SpringContextUtil();
			ctxUtil.setApplicationContext(context);
			
//			ReportBiz reportBiz = (ReportBiz) SpringContextUtil.getBean("reportBiz");

		} catch (Exception e) {
			logger.error("wsjc.app.time error:", e);
		}
	}
}
